package com.yz.house.ui.fragment;

import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.Toast;

import com.yz.house.R;
import com.yz.house.base.BaseFragment;
import com.yz.house.ui.activity.MyOrdersActivity;
import com.yz.house.ui.activity.SettingActivity;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * @author zhangyf
 * @date 2018/4/12
 */
public class MineFragment extends BaseFragment {

    @BindView(R.id.rl_root)
    RelativeLayout rl_root;

    public static MineFragment newInstance(Bundle args) {
        MineFragment fragment = new MineFragment();
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    protected void onInitLazyData() {

    }

    @Override
    protected void onInitFastData() {

    }

    @Override
    protected void onInitFastView() {
    }

    @Override
    protected int getContentViewLayoutID() {
        return R.layout.fragment_mine;
    }

    @OnClick({R.id.rl_orders, R.id.rl_feedback, R.id.iv_setting})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.rl_orders:
                mActivity.readyGo(MyOrdersActivity.class);
                break;
            case R.id.rl_feedback:
                Toast.makeText(mActivity,"功能正在开发中",Toast.LENGTH_SHORT).show();
                break;
            case R.id.iv_setting:
                mActivity.readyGo(SettingActivity.class);
                break;
        }
    }
}
